<template>
  <div class="wrapper">
    <web :style = "webStyle" :src="src"></web>
  </div>
</template>

<script>
import { Utils} from 'weex-ui';
export default {
    components: {
        Utils
    },
    data() {
        return {
            data:{},
            upkeepId:'',
            upkeepNumber:'',
            src:'',
        }
    },
    methods: {
        
    },
    created(){
        const tabPageHeight = Utils.env.getPageHeight()
        const containerHeight = tabPageHeight
        this.webStyle ={ height: containerHeight + 'px',width:750+'px'}
        this.$router.getParams().then(resData => {
            this.data = resData.upkeepDetail
            this.upkeepId = this.data.upkeepId
            this.upkeepNumber = this.data.upkeepNumber
            // this.src = `https://zn.hyjtyl.com/wechat.html#/appSignature?upkeepId=${this.upkeepId}&upkeepNumber=${this.upkeepNumber}`
            this.src = `http://test.hyjtyl.com/wechat.html#/appSignature?upkeepId=${this.upkeepId}&upkeepNumber=${this.upkeepNumber}`

            console.log(this.src);
            // this.src = "http://www.baidu.com"
        })
    },
    eros:{
        // beforeDisappear(){
        //     //跳转上传页
        //     this.$router.setHomePage('tabBar')
        // }
    }
    
}
</script>

<style scoped>

</style>
